package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the nurse_target database table.
 * 
 */
@Entity
@Table(name="nurse_target")
public class NurseTarget implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String comment;

	private String name;

	//bi-directional many-to-one association to CustomerNurse
	@OneToMany(mappedBy="nurseTarget")
	private List<CustomerNurse> customerNurses;
	@OneToMany(mappedBy="nurseTarget")
	private List<Customer> customers;
	
	public NurseTarget() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<CustomerNurse> getCustomerNurses() {
		return this.customerNurses;
	}

	public void setCustomerNurses(List<CustomerNurse> customerNurses) {
		this.customerNurses = customerNurses;
	}

	public List<Customer> getCustomers() {
		return customers;
	}

	public void setCustomers(List<Customer> customers) {
		this.customers = customers;
	}

}